package com.waimai.db.service;

import com.waimai.db.entity.Comment;
import com.waimai.db.entity.Food;
import com.waimai.db.entity.Order;
import com.waimai.db.entity.OrderStatus;
import com.waimai.db.entity.Restaurant;

import java.util.List;

public interface RestaurantService {
	public List<Restaurant> findBykeyWords(String keyWords);
	
	public Restaurant findById(Integer restaurantId);

	public List<Food> getFoods(Integer restaurantId);

	public List<Restaurant> getRestaurants();

	public void save(Restaurant restaurant);

	public void update(Restaurant restaurant);
	
	public Order addOrder(Order order);
	
	public OrderStatus updateOrderSatus(Integer orderId, OrderStatus orderStatus);

	public List<Comment> getComments(Integer restaurantId, int commentLevel);

	public List<Restaurant> getRestaurantsByAdminId(int adminId);

	public Restaurant findByRestuarentName(String restaurantName);

	public List<Comment> getCommentByAdminId(int adminId);

	public Restaurant getRestaurantsByName(String restaurantName);
	
}

